/* eslint-disable */
class LabelStorageBase {
    constructor() {
        this.dataset_id = null;
        this.dataset_type = null;
        this.label_format = null;

        this.total_page = null;
        this.total_count = null;
        this.per_page = 10;
        this.current_page = null;

        this.labeldatas = [];
        this.categories = [];
    }

    // 从本地加载数据，自动进行分页处理
    async loadDataset(dataset_info) {}

    // 根据page_index获取对应一页的数据
    async getPageData(page_index) {}

    // 返回labeldata数据
    async getLabelData(index) {}

    // 保存手工标注的结果
    async saveLabelData(index) {}

    // 获取类别信息
    async getCategory(category_id) {
        const category = this.categories.find((item) => item.category_id === category_id);
        return category;
    }
}

export default LabelStorageBase;
